import { request } from "../request";

export const ChatAiApi = (data:any)=>{
    return request({
        method:"POST",
        url:`/api/ai/chatAi`,
        data
    })
}

export const ChatAiStreamApi = (data:any)=>{
    return request({
        method:"POST",
        url:`/api/ai/chatAiStream`,
        data
    })
}

export const GetAiHistoryList = (data:any)=>{
    return request({
        method:"POST",
        url:`/api/ai/conversationHistoryList`,
        data
    })
}

export const GetChatDetailById = (data:any)=>{
    return request({
        method:"GET",
        url:`/api/ai/chatById`,
        data
    })
}